const express = require('express')
const loginItems = require('../controller/login')


const router = express.Router()

router.post('/userInfo', loginItems.login)
router.post('/addUser',loginItems.addUser)
router.get('/getUserList',loginItems.getUserList)
router.post('/changeIdentify',loginItems.changeIdentify)
router.post('/deleteUser',loginItems.deleteUser)
router.get('/getRouterList',loginItems.getRouterList)
router.post('/addRouter',loginItems.addRouter)


router.post('/getIdentifyList',loginItems.getIdentifyList)
// router.post('/updateIdentifyList'.loginItems.updateIdentifyList)  中间是逗号连接，不是·
router.post('/updateIdentifyList',loginItems.updateIdentifyList)
router.post('/updateIdentifyRouter',loginItems.updateIdentifyRouter)

router.post('/addLoginLog',loginItems.addLoginLog)
router.get('/getLoginLog',loginItems.getLoginLog)

module.exports = router